#include "crypt.h"

char *key = "jHqMfG2tSdmvkE5w";

unsigned char en[] = {
0xb4,0x9a,0x28,0x19,0xce,0xc6,0x5d,0x4e
,0x33,0x34,0x0b,0xbe,0x57,0x6b,0xbc,0x8b
,0xf3,0x54,0xa2,0xec,0xd0,0x85,0x80,0x86
,0x01,0xc8,0xd7,0xdc,0x01,0x1d,0x04,0x7a
,0x1d,0x8d,0x25,0xf2,0x61,0xed,0x14,0xe1
,0xb7,0x6e,0xbe,0x4f,0x68,0x01,0xb7,0xbb
,0xd6,0x98,0xd8,0x91,0x64,0x43,0xbb,0x18
,0xe2,0x74,0xd4,0xed,0x89,0x0c,0x47,0x4f
,0xed,0x7f,0x73,0xdd,0x42,0xb5,0x96,0xaf
,0x0d,0xb6,0x55,0xf8,0x49,0x0c,0xa5,0xb3
,0xc0,0x17,0x5c,0x39,0xb3,0x15,0xf0,0xf3
,0x1a,0x4e,0xbf,0xb6,0x7f,0x27,0xde,0x69
,0x9d,0xff,0xe7,0x0a,0xe1,0x1f,0x59,0x0b
,0x0a,0x43,0x97,0xc9,0x72,0x9c,0xa8,0xf5
,0x76,0xc2,0x2a,0x34,0x98,0xbb,0x1a,0x4d
};

void hex_dump
(unsigned char *buffer, int bytes) {
  int i, j;
  int ch;

  for (i = 0; i < bytes; i += 16) {
    printf("%04d: ", i);

    for (j = 0; j < 16; j ++)
      if ((i + j) < bytes) printf(" %02x", buffer[i + j]);
      else printf("   ");
    putchar(' ');
    putchar(' ');

    for (j = 0; j < 16 && (i + j) < bytes; j ++) {
      ch = buffer[i + j] & 127;
      if (ch < ' ' || ch == 127) putchar('.');
      else putchar(ch);
    }
    putchar('\n');
  }
}// hex_dump

int main(void) {
unsigned char de[200];
int len=200;

qq_crypt(DECRYPT, (unsigned char *)en, 120,
				(unsigned char *)key, de, &len);
hex_dump(de, len);

}
